package com.example.demo.jvm.class4;

/**
 * @author liweizhi
 * @date 2020/5/5
 */
public class VolatileAndSync {
    volatile int count;

    synchronized void myTest() {
        int a = 1;
    }

    void myTest2() {
        synchronized (this) {
            int a = 1;
        }
    }
}
